package cn.chat.udp.ui;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.UnknownHostException;

import cn.chat.udp.ui.protocol.ChatProtocol;

public class SystemConfig {
	private static InetAddress localHost;
	static{
		try {
			localHost = InetAddress.getLocalHost();
		} catch (UnknownHostException e) {
			e.printStackTrace();
		}
	}
	public final static int HOST_PORT=9999;
	public final static int MSG_TYPE_HELLO=0;
	public final static int MSG_TYPE_RETURN=1;
	public final static int MSG_TYPE_MSG=2;
	public final static int MSG_TYPE_OTHER=3;
	public static DatagramSocket ds;
	public static String HostAddress=localHost.getHostAddress();
	public static String HostName=localHost.getHostName();	
	public static ChatProtocol chatProtocol=new ChatProtocol();

}
